package com.kaifamiao.www.demo.do0825;

public class Demo {
//    enum Gender{
//        男,女;
//    }
public static void main(String[] args) {
    Demo demo = new Demo();
    Week week = Week.FRI;
    demo.show(week);
    demo.show(Week.SUN);
}
    public void show(Week week) {
    switch (week){
        case MON :
        case TUE :
        case WED :
        case THU:
        case FRI :
            System.out.println("工作日");
            break;
        case SAT:
            System.out.println("周六去游泳");
            break;
        case SUN:
            System.out.println("周末去爬山");
            break;
    }
    }
}
enum Week{
    MON,TUE,WED,THU,FRI,SAT,SUN
}
